package com.suncreate.zhtz.iot.service;
import com.suncreate.zhtz.iot.mapper.C2000ValueMapper;
import com.suncreate.zhtz.iot.mapper.AdcMapper;
import com.suncreate.zhtz.iot.model.AdcModel;
import com.suncreate.zhtz.iot.model.C2000ValueModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 */
@Slf4j
@Service
public class C2000ValueService {
    @Autowired
    private C2000ValueMapper c2000ValueMapper;

    public List<C2000ValueModel> queryDataByTimeAndCh(String startTime, String endTime,String chNum,String calculate,String interval, Integer sort,Float minValue,Float maxValue,Integer limit) {
        return c2000ValueMapper.queryDataByTimeAndCh(startTime,endTime,chNum,calculate,interval,sort,minValue,maxValue,limit);
    }

    public List<C2000ValueModel> queryTopDataByTimeAndCh(String startTime, String endTime,String chNum, Integer topCount, Integer sort)
    {
        return c2000ValueMapper.queryTopDataByTimeAndCh(startTime,endTime,chNum,topCount,sort);
    }
}